<?php 

foreach ($items as $res){
		
		print "<pre>"; print_r($res); print "</pre>"; die;
		
		$dept =  $res->field_go_depart_value;
		$deptName = get_govt_dept_names($dept); 
		$abstract =  $res->field_go_abstract_value; 
		$filepath = $res->uri;
		print $filesize = $res->filesize;
		$title = $res->title;
		$go_date = SUBSTR($res->field_go_date_value,0,10); 
		//echo $Year = $go_date->format('d-m-Y');
		$go_date_check = date(strtotime($go_date));
		$goYear = date("Y", strtotime($go_date));
?>